package com.smart.electronic.fence.service;


import com.smart.electronic.fence.pojo.ElectronicFence;
import com.smart.electronic.fence.util.PageResult;

import java.util.List;

public interface ElectronicFenceService {

    int add(ElectronicFence fence);

    int removeById(String layerId);

    int editById(ElectronicFence fence);

    ElectronicFence getById(String layerId);

    ElectronicFence getByName(String fenceName);

    List<ElectronicFence> getAll();

    PageResult findPage(Integer pageNum, Integer pageSize);

    PageResult seachByPage(String fenceName,Integer pageNum,Integer pageSize);

}
